 
package com.wtzz.police.base.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonProperty.Access;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@ApiModel("附件信息")
@Setter
@Getter
@Entity
@Table(name = "gs_attachment")
public class Attachment extends AbstractAuditingEntity  implements Serializable{

	private static final long serialVersionUID = -3819102853896050445L;

	@ApiModelProperty("文件名称")
	private String filename;
	@ApiModelProperty("后缀")
	private String suffix;
	@ApiModelProperty(value="文件大小",example="0",notes="只读的，不需要传入")
	@Column(name="size_")
	private Long size;
	@ApiModelProperty(name="文件所在路径",hidden=true)
	@JsonProperty(access=Access.READ_ONLY)
	private String path;
}
